
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableLordConf {
    static TableName: string = "LordConf";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableLordConf.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 合成物名 */
    get name(): string {
        return this.data.name;
    }
    /** 类型 */
    get type(): number {
        return this.data.type;
    }
    /** 普通攻击 */
    get normal(): number {
        return this.data.normal;
    }
    /** 被动技能 */
    get passives(): any {
        return this.data.passives;
    }
    /** 出生攻击 */
    get atk(): number {
        return this.data.atk;
    }
    /** 出生防御 */
    get def(): number {
        return this.data.def;
    }
    /** 出生血量 */
    get hp(): number {
        return this.data.hp;
    }
    /** 出生点击伤害 */
    get clk(): number {
        return this.data.clk;
    }
}
    